package com.generator.mcp;

import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Mcp tool 注册工具
 */
@Configuration
public class McpConfig {
    @Bean
    public ToolCallbackProvider toolCallbackProvider(EnhancedGeneratorToolProvider provider) {
        return MethodToolCallbackProvider.builder().toolObjects(provider).build();
    }
}
